package com.wangzeqi.neihanduanzi.enter;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.BaseAdapter;
import android.widget.ImageButton;
import android.widget.Toast;

import com.wangzeqi.neihanduanzi.R;
import com.wangzeqi.neihanduanzi.base.AnimationBaseActity;
import com.wangzeqi.neihanduanzi.base.BaseActivity;
import com.wangzeqi.neihanduanzi.msg.MsgActivity;

/**
 * Created by dllo on 16/1/15.
 */
public class EnterActivity extends BaseActivity implements View.OnClickListener {


    private ImageButton imageButton;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.enter_activity);
        findViewById(R.id.enter_wx).setOnClickListener(this);
        findViewById(R.id.enter_rrw).setOnClickListener(this);
        findViewById(R.id.enter_kxw).setOnClickListener(this);
        findViewById(R.id.enter_txqq).setOnClickListener(this);
        findViewById(R.id.enter_txqq).setOnClickListener(this);
        findViewById(R.id.enter_xlwb).setOnClickListener(this);
        findViewById(R.id.enter_sj).setOnClickListener(this);
        imageButton = (ImageButton) findViewById(R.id.enter_top_left_id);
        imageButton.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.enter_kxw:
                Toast.makeText(this, "开心网登录", Toast.LENGTH_SHORT).show();
                break;
            case R.id.enter_rrw:
                Toast.makeText(this, "人人网登录", Toast.LENGTH_SHORT).show();
                break;
            case R.id.enter_txqq:
                Toast.makeText(this, "腾讯QQ登录", Toast.LENGTH_SHORT).show();
                break;
            case R.id.enter_txwb:
                Toast.makeText(this, "腾讯微博登录", Toast.LENGTH_SHORT).show();
                break;
            case R.id.enter_xlwb:
                Toast.makeText(this, "新浪微博登录", Toast.LENGTH_SHORT).show();
                break;
            case R.id.enter_wx:
                Toast.makeText(this, "微信登录", Toast.LENGTH_SHORT).show();
                break;
            case R.id.enter_sj:
                Toast.makeText(this, "手机号登录", Toast.LENGTH_SHORT).show();
                break;
            case R.id.enter_top_left_id:
               this.finish();
                break;
        }
    }
}
